package com.wallet.provider.mapper;

import com.github.pagehelper.Page;

import com.wallet.provider.model.UserRole;
import com.wallet.provider.model.vo.UserRoleVo;
import org.apache.ibatis.annotations.Param;

public interface UserRoleMapper {
    int deleteByPrimaryKey(UserRole key);

    int insert(UserRole record);

    int insertSelective(UserRole record);

    Page<UserRoleVo> selectByPageNumSize(@Param("userRoleVo") UserRoleVo userRoleVo, @Param("pageNum") int pageNum, @Param("pageSize") int pageSize, @Param("orderName") String orderName, @Param("orderType") String orderType);

    UserRoleVo selectUserRoleById(Long id);

    int updateUserRole(@Param("userRole") UserRole userRole);
}